package com.ruoyi.system.domain;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 用户收藏对象 app_user_collect
 * 
 * @author ruoyi
 * @date 2023-02-27
 */
public class AppUserCollect extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    /** 用户id */
    @Excel(name = "用户id")
    private Long userId;

    /** 类型，0：笔记（纯文字），1：图片，2：视频，3：链接url */
    @Excel(name = "类型，0：笔记", readConverterExp = "纯=文字")
    private Integer type;

    /** 笔记内容、图片视频链接url */
    @Excel(name = "笔记内容、图片视频链接url")
    private String content;

    /** 视频封面 */
    @Excel(name = "视频封面")
    private String videoCover;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setType(Integer type) 
    {
        this.type = type;
    }

    public Integer getType() 
    {
        return type;
    }
    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }
    public void setVideoCover(String videoCover) 
    {
        this.videoCover = videoCover;
    }

    public String getVideoCover() 
    {
        return videoCover;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("createTime", getCreateTime())
            .append("userId", getUserId())
            .append("type", getType())
            .append("content", getContent())
            .append("videoCover", getVideoCover())
            .toString();
    }
}
